/*
 * openCapture.cpp
 *
 *  Created on: Nov 9, 2012
 *      Author: Matthijs
 */
#include <camera/camera.h>

/**
 *	Open capture devices
 */
bool Camera::openCapture ()
{
/*	captureLeft  = new cv::VideoCapture( 1 );
	captureLeft  	-> set(CV_CAP_PROP_FRAME_WIDTH, 	800);
	captureLeft  	-> set(CV_CAP_PROP_FRAME_HEIGHT, 	600);
	captureLeft 	-> set(CV_CAP_PROP_FPS, 			 5);
*/

	captureRight = new cv::VideoCapture( 1 );
	captureRight	-> set(CV_CAP_PROP_FRAME_WIDTH,     800);
	captureRight  	-> set(CV_CAP_PROP_FRAME_HEIGHT, 	504);

/*
	if ( !captureLeft -> isOpened() || !captureRight -> isOpened() )
	{
	    ROS_ERROR( "Could not open both camera capture devices." );
//	    return false;
	}*/
	return true;
}
